ArcPad Map File Schema
RADIOBUTTON Element
See Also  Send comments on this topic.
ArcPad Map File Schema > PAGE Element : RADIOBUTTON Element

Glossary Item Box

Description

Used to define a RadioButton control in a form.

Diagram

RADIOBUTTON Element

Overview

RADIOBUTTON
Used to define a RadioButton control in a form.
height required Restriction of xs:int
width required Restriction of xs:int
x required xs:int
The x coordinate of the upper left corner of the radio button.
y required xs:int
The y coordinate of the upper left corner of the radio button
backgroundcolor optional xs:string
border optional Restriction of xs:string
caption optional xs:string
Displayed in the toolbar.
color optional xs:string
field optional xs:string
font optional xs:string
Font name. The name is case sensitive. If font name uses "&", use "&" instead. For example, ESRI Transportation & Civic should be written as ESRI Transportation & Civic.
fontsize optional Restriction of xs:int
Font size.
fontstyle optional Restriction of xs:string
Font style. If the value is not regular, it can be any combination of other values, expressed as a comma delimited list (for example, fontstyle="bold,underline")
group optional Restriction of xs:string
name optional xs:string

When parent is ToolButton:

Custom tool name. Used to reference the tool in scripts.

onclick optional xs:string
Specify the script to run when this event occurs.
onkillfocus optional xs:string
Specify the script to run when this event occurs.
onsetfocus optional xs:string
Specify the script to run when this event occurs.
onvalidate optional xs:string
Specify the script to run when this event occurs.
readonly optional Restriction of xs:string
required optional Restriction of xs:string
tabstop optional Restriction of xs:string
value optional xs:string
The value associated with the text.

Attributes

NameTypeUseDefaultFixedDescription
heightRestriction of xs:intrequired   
widthRestriction of xs:intrequired   
xxs:intrequired  The x coordinate of the upper left corner of the radio button.
yxs:intrequired  The y coordinate of the upper left corner of the radio button
backgroundcolorxs:stringoptional   
borderRestriction of xs:stringoptionalfalse  
captionxs:stringoptional  Displayed in the toolbar.
colorxs:stringoptional   
fieldxs:stringoptional   
fontxs:stringoptional  Font name. The name is case sensitive. If font name uses "&", use "&" instead. For example, ESRI Transportation & Civic should be written as ESRI Transportation & Civic.
fontsizeRestriction of xs:intoptional  Font size.
fontstyleRestriction of xs:stringoptionalregular Font style. If the value is not regular, it can be any combination of other values, expressed as a comma delimited list (for example, fontstyle="bold,underline")
groupRestriction of xs:stringoptionalfalse  
namexs:stringoptional  

When parent is ToolButton:

Custom tool name. Used to reference the tool in scripts.

onclickxs:stringoptional  Specify the script to run when this event occurs.
onkillfocusxs:stringoptional  Specify the script to run when this event occurs.
onsetfocusxs:stringoptional  Specify the script to run when this event occurs.
onvalidatexs:stringoptional  Specify the script to run when this event occurs.
readonlyRestriction of xs:stringoptionalfalse  
requiredRestriction of xs:stringoptionalfalse  
tabstopRestriction of xs:stringoptionaltrue  
valuexs:stringoptional  The value associated with the text.

Remarks

RadioButton controls are only useful in edit and identify forms. They should not be used in general forms.

Examples

Restrictions

The following attributes can only be used in edit and identify forms. They cannot be used in general forms:

  •  field
  •  required

Source

<xs:element name="RADIOBUTTON" maxOccurs="1" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:annotation>
    <xs:documentation>Used to define a RadioButton control in a form.</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:attribute use="required" ref="height">
      <xs:annotation>
        <xs:documentation>The height of the radio button.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute use="required" ref="width">
      <xs:annotation>
        <xs:documentation>The width of the radio button.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute use="required" name="x" type="xs:int">
      <xs:annotation>
        <xs:documentation>The x coordinate of the upper left corner of the radio button.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute use="required" name="y" type="xs:int">
      <xs:annotation>
        <xs:documentation>The y coordinate of the upper left corner of the radio button</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute ref="backgroundcolor">
      <xs:annotation>
        <xs:documentation>The background color to use for the radio button. If not specified, this value is inherited from the page's backgroundcolor attribute.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute default="false" ref="border">
      <xs:annotation>
        <xs:documentation>Specifies whether the radio button has a border.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute ref="caption">
      <xs:annotation>
        <xs:documentation>The caption displayed to the right of the radio button.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute ref="color">
      <xs:annotation>
        <xs:documentation>The color to use for the radio button's text. If not specified, this value is inherited from the page's color attribute.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute ref="field">
      <xs:annotation>
        <xs:documentation>The field of the shapefile's DBF table that is linked to the radio button.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute ref="font">
      <xs:annotation>
        <xs:documentation>The font to use for the radio button's text. If not specified, this value is inherited from the page's font attribute.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute ref="fontsize">
      <xs:annotation>
        <xs:documentation>The font size to use for the radio button's text. If not specified, this value is inherited from the page's fontsize attribute.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute default="regular" ref="fontstyle">
      <xs:annotation>
        <xs:documentation>The font style to use for the radio button's text. If not specified, this value is inherited from the page's fontstyle attribute. If the value is not regular, it can be any combination of other values, expressed as a comma delimited list (for example, fontstyle="bold,underline").</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute default="false" ref="group">
      <xs:annotation>
        <xs:documentation>Specifies whether the radio button starts a new group of controls.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute ref="name">
      <xs:annotation>
        <xs:documentation>Name of the RadioButton control. Used to reference the control in scripts.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute ref="onclick">
      <xs:annotation>
        <xs:documentation>Specify the script to run when this event occurs.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute ref="onkillfocus">
      <xs:annotation>
        <xs:documentation>Specify the script to run when this event occurs.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute ref="onsetfocus">
      <xs:annotation>
        <xs:documentation>Specify the script to run when this event occurs.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute ref="onvalidate">
      <xs:annotation>
        <xs:documentation>Specify the script to run when this event occurs.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute default="false" ref="readonly">
      <xs:annotation>
        <xs:documentation>Specifies whether the radio button's value can be modified by the user.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute default="false" ref="required">
      <xs:annotation>
        <xs:documentation>Specifies if the user must enter some text in the radio button.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute default="true" ref="tabstop">
      <xs:annotation>
        <xs:documentation>Specifies whether the TAB key can be used to move the focus to the radio button.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute ref="value">
      <xs:annotation>
        <xs:documentation>The value that is written to the linked field when the radio button is selected.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
</xs:element>

See Also

© 2012 All Rights Reserved.